package com.fms.data.properties;

import java.io.FileInputStream;
import java.io.FileOutputStream;

import com.fms.model.properties.AbstractProperties;

public class FMSProperties extends AbstractProperties
{
	private static final long	serialVersionUID	= -7917258454677879042L;

	public FMSProperties()
	{
		load();
	}

	@Override
	public void load()
	{
		try
		{
			FileInputStream stream = new FileInputStream("fms.xml");
			this.loadFromXML(stream);
			stream.close();
		}
		catch(Exception e)
		{
			
		}
		
	}

	@Override
	public void save()
	{
		try
		{
			FileOutputStream stream = new FileOutputStream("fms.xml");
			this.storeToXML(stream, "");
			stream.close();
		}
		catch(Exception e)
		{
			
		}
	}

}
